using MicroMsg.Manager;
using MicroMsg.Resource.@string;
using MicroMsg.UI.Util;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
namespace MicroMsg.UI.Page
{
	public class BindedQQPage : BasePage
	{
		internal Grid LayoutRoot;
		internal Grid ContentPanel;
		internal TextBlock txtBindedQQ;
		internal Button btnViewQQFriends;
		private bool _contentLoaded;
		public BindedQQPage()
		{
			this.InitializeComponent();
			base.add_Loaded(new RoutedEventHandler(this.initData));
		}
		protected override void OnPageIn(object[] object_0)
		{
			if (object_0 != null)
			{
				string text = object_0[0] as string;
				if (text == "findFriend")
				{
					PageManager.getInstance().PopPage();
					PageManager.getInstance().PopPage();
				}
			}
		}
		private void initData(object sender, RoutedEventArgs e)
		{
			this.txtBindedQQ.set_Text(strings.Set_BindQQ_Num + AccountMgr.nBindQQ);
		}
		private void btnViewQQFriends_Click(object sender, RoutedEventArgs e)
		{
			base.GoToPage("/Source/Plugin/Common/QQInfo/UI/ViewQQGroups.xaml", null, false);
		}
		[DebuggerNonUserCode]
		public void InitializeComponent()
		{
			if (this._contentLoaded)
			{
				return;
			}
			this._contentLoaded = true;
			Application.LoadComponent(this, new Uri("/MicroMsg;component/Source/UI/Setting/BindedQQPage.xaml", 2));
			this.LayoutRoot = (Grid)base.FindName("LayoutRoot");
			this.ContentPanel = (Grid)base.FindName("ContentPanel");
			this.txtBindedQQ = (TextBlock)base.FindName("txtBindedQQ");
			this.btnViewQQFriends = (Button)base.FindName("btnViewQQFriends");
		}
	}
}
